package com.community.service;

import com.community.common.ServerResponse;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface IAnswerService {

    /**
     * 查询优质回答(首页推荐)
     * @return
     */
    ServerResponse<PageInfo> selectGreatAnswer(int pageNum, String order, HttpServletRequest request);

    ServerResponse<String> addOrUpdate(Map paramMap, HttpServletRequest request);

    ServerResponse<String> updateShowStatusById(int id,int show,HttpServletRequest request);

    ServerResponse<String> viewCharges(int answerId,HttpServletRequest request);
}
